﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class PeopleController : ControllerBase
    {
        private readonly PeopleController db;

        public PeopleController(PeopleController context) 
        {
            db = context;
        }

        [HttpGet]
        public object GetAll(Guid id)
        {
            IQueryable<People> query = db.Peoples;
            return query.Where(s => s.ID == id);
        }
    }
}
